//
//  SEGPublishHouseViewModel.h
//  Commom
//
//  Created by 梁学彰 on 2020/6/4.
//

#import <Foundation/Foundation.h>
#if __has_include(<Commom/CommomHeader.h>)
#import <Commom/CommomHeader.h>
#else
#import "CommomHeader.h"
#endif


NS_ASSUME_NONNULL_BEGIN
#define kPublishHouseViewHeight 50     // PublishHouseView的高度
extern NSString * const SEGPublishHouseViewCellIndetifier;

typedef NS_ENUM(NSUInteger, SEGEnumPublishHouseViewType) {
    SEGEnumPublishHouseViewType_NO = 0, /*菜单选择*/
    SEGEnumPublishHouseViewType_TextField_DecimalPad,
    SEGEnumPublishHouseViewType_TextField_NumberPad,
    SEGEnumPublishHouseViewType_TextField_NumbersAndPunctuation,
    SEGEnumPublishHouseViewType_TextField_Text,
    SEGEnumPublishHouseViewType_Title,
    SEGEnumPublishHouseViewType_Content,
    SEGEnumPublishHouseViewType_NO_Edit
};

@interface SEGPublishHouseViewModel : NSObject
@property (nonatomic, copy) NSString *title; // <#注释#>
@property (nonatomic, copy) NSString *placeholder; // <#注释#>
@property (nonatomic, copy) NSString *content; // <#注释#>
@property (nonatomic, copy) NSString *content2; // <#注释#>
@property (nonatomic, copy) NSString *paraKey;
@property (nonatomic, copy) NSString *paraKey2;
@property (nonatomic, copy) NSString *textFieldPlaceholder;
@property (nonatomic, copy) NSString *textFieldPlaceholder2;
@property (nonatomic, assign) CGFloat widgetWidth;//控件宽度
@property (nonatomic, assign) CGFloat widgetHeight;//控件高度
@property (nonatomic, strong)id businessData;//控件业务数据载体

-(instancetype)init;
@end

@interface SEGPublishHouseViewLayout : NSObject
@property (nonatomic, assign,readonly) CGFloat totalHeight;//控件总高度
@property (nonatomic, assign,readonly) SEGEnumPublishHouseViewType type;//控件类型
@property (nonatomic, strong,readonly)SEGPublishHouseViewModel *data;
@property (nonatomic, assign) NSInteger limitTextLenght;//最长长度
- (instancetype)initWithData:(SEGPublishHouseViewModel *)data type:(SEGEnumPublishHouseViewType)type;
-(void)segPublishHouseViewLayout;

@property (nonatomic, assign) CGFloat titleLabelHeight;//titleLabel 高度
@property (nonatomic, strong) SEGTextLayout *titleLabelTextLayout;//titleLabel 富文本布局

@property (nonatomic, assign) CGFloat placeLabelHeight;//placeLabel 高度
@property (nonatomic, strong) SEGTextLayout *placeLabelTextLayout;//placeLabel 富文本布局

@property (nonatomic, assign) CGFloat contentLabelHeight;//contentLabel 高度
@property (nonatomic, strong) SEGTextLayout *contentLabelTextLayout;//contentLabel 富文本布局

@end

NS_ASSUME_NONNULL_END
